package com.example.game.sdk.framework.plugin.privacy

import android.content.Context
import com.example.game.sdk.framework.GameApiCallback
import com.example.game.sdk.framework.plugin.DispatcherTemplate
import com.example.game.sdk.framework.plugin.PluginTemplate
import org.json.JSONObject

internal class PrivacyDispatcher() : DispatcherTemplate() {

    private var privacyList = mutableListOf<PrivacyTemplate>()

    override val lifecycleDispatchList: List<PluginTemplate> = privacyList

    override val dispatcherName: String = "privacy"

    override fun attachBaseContext(context: Context) {
        //todo 实例化插件对象
        //privacyList.add(PrivacyTemplate())

        //分发生命周期
        privacyList.forEach {
            it.attachBaseContext(context)
        }

    }
}